package model;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;


@Entity
@Table(name="sgp_ambiente")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE) 
@AttributeOverrides(
		value={@AttributeOverride(name="id",column=@Column(name="id_ambiente"))})
public class Ambiente extends ObjBase implements Serializable {
    
    private String ambiente;

    public String getAmbiente() {
        return ambiente;
    }

    public void setAmbiente(String ambiente) {
        this.ambiente = ambiente;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.ambiente != null ? this.ambiente.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ambiente other = (Ambiente) obj;
        if ((this.ambiente == null) ? (other.ambiente != null) : !this.ambiente.equals(other.ambiente)) {
            return false;
        }
        return true;
    }
    
}